package cocurrency.waitnotify;

/**
 * Created by luzl on 4/6/2017.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {

        Lock lock=new Lock();
        lock.setCount(0);
        WaitTest waitTest=new WaitTest(lock);
        NotifyTest notifyTest=new NotifyTest(lock);
        waitTest.start();
        notifyTest.start();

    }
}
